<%@ page import="java.util.*;" %>
<html>


	<body>
	<%
		ArrayList list = (ArrayList)request.getAttribute("circularNumbersBasedOnServiceNumber"); 
		System.out.println("list:"+list);
		if("ServiveNumbersData".equals(request.getAttribute("ServiveNumbersData"))){
			if(null != list && !list.isEmpty()){
				Iterator iterator = list.iterator();
				
		%>
			<table width="100%" cellpadding = '3' cellspacing="0" align="center" border="0" cellspacing ="0" cellpadding="0" valign="middle" >
				<tr>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "25%" ><h2>Notification Number</h2></td>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "75%" >
						 <select id="vvv" onchange="gettingNotificationDetailsbasedOnNotificationNumber (this)">
					        <option value="-1">-----------------------Select One--------------------</option>
					        <%while(iterator.hasNext())
					        {
								String ss;
								ss=iterator.next().toString();
							%>
					         <option value= "<%= ss %>" ><%=ss %></option> 
					         <%} %>
							
					    </select>
					   
					</td>
	 			</tr>
			</table>
			<%}else{ %>
			
			<table width="600px" cellpadding = '3' cellspacing="0" align="center" border="0" cellspacing ="0" cellpadding="0" valign="middle" >
				<tr>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "600px" colspan='2' ><h2><font color='red'>
					No CircularNumbers are available to this Service.</font></h2></td>
	 			</tr>
			</table>
			
			<% }} else if("NotificationNumberDetailsBasedOnServicenumberAndCircularDate".equals(request.getAttribute("ServiveNumbersData"))){%>
			<table width="100%" cellpadding = '3' cellspacing="0" align="center" border="0" cellspacing ="0" cellpadding="0" valign="middle">
			
			<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Date of Notification</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px">  <input type="text" class="datepicker"  name="DateofNotification121"  id="DateofNotification121" size="50px" value='<%=request.getAttribute("Date_of_Notification_Update")%>' /></td>
			</tr>
			<tr>
				<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Subject Matter</h2></td>
				<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><textarea name="SubjectMatter121" rows="5" cols="50" id="SubjectMatter121" ><%=request.getAttribute("Subject_Matter_Update")%></textarea></td>
			</tr>
			<tr>
				<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Effective date</h2></td>
				<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"> <input type="text" class="datepicker"   name="Effectivedate121"  id="Effectivedate121" size="50px" value='<%=request.getAttribute("Effective_date_Update")%>'/></td>
			</tr>
		
			<tr>
			 	<td width="250px" style="border-radius:05px;">&nbsp;</td>
			 	<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"  width = "75%" ><input type="button" name="updateCircular" id="updateCircular" value="update" onclick="updateNotifications121()"/></td>	
			</tr>
			
			</table>
			<%} %>
	</body>
</html>